package com.jbp.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jbp.utils.PageUtils;
import com.jbp.utils.Query;

import com.jbp.dao.RoomReportDao;
import com.jbp.model.RoomReport;
import com.jbp.service.RoomReportService;


@Service
public class RoomReportServiceImpl extends ServiceImpl<RoomReportDao, RoomReport> implements RoomReportService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoomReport> page = this.page(
                new Query<RoomReport>().getPage(params),
                new QueryWrapper<RoomReport>()
        );

        return new PageUtils(page);
    }

}
